package com.my_musc_service.controller.api;

import com.my_musc_service.common.R;
import com.my_musc_service.entity.RegisterVo;
import com.my_musc_service.service.RegisterService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhudunfeng
 * @date 2021/6/24 22:09
 */
@Slf4j
@RestController
@RequestMapping(value = "register")
public class RegisterController {

    @Autowired
    private RegisterService registerService;


    @PostMapping()
    public R register(@RequestBody RegisterVo registerVo) {
        registerService.register(registerVo);
        return R.ok();
    }


}
